package com.scjst.mapper;
import com.scjst.entity.UserEntity;
import com.sun.org.apache.bcel.internal.generic.NEW;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserMapper {

    @Insert("INSERT INTO tUserTest(id,name,age) VALUES(#{id},#{name},#{age})")
    Integer addUser(@Param("id") Integer id,@Param("name") String name,@Param("age") Integer age);

    @Select("select * from tUserTest ")
    List<UserEntity> findAllUser();
}
